home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-02-22 | 901 b | 22 lines | [TEXT/MJUA] |
- MACRO 'TimeDependent';
-
- {this macro assumes that you selected VAR1 as time dependent covariate}
- {and VAR2 as fixed covariate.Notice that rVar[] addresses to data in }
- {the selected vars array while rData[] addresses to the data in the }
- {active data array loded with the Get Data option of the File Menu. }
- {If the value of the variable in columm 2 of the data matrix is less }
- {than 650 the selected VAR1 takes the value of zero (0);otherwise its }
- {value is substracted from the average value for that variable. This }
- {latter operation should be done for both, time dependent and fixed }
- {covariate, to avoid internal overflow errors.}
-
-
- begin
-
- {rVar[1] is selected as time dependent covariate = age;survival times in rData[2]}
-
- FUNCTION
- If rData[2] => 650 then rVar[1]:= (rVar[1] - rMean[1]) else rVar[1]:= 0;
- rVar[2]:= (rVar[2] - rMean[2]); {Fixed covariate = grade}
- end;
- end;